package com.franz.noteapp.useCase

import com.franz.noteapp.bean.NoteBean
import com.franz.noteapp.room.repository.NoteRepository

class GetNote(private val repository: NoteRepository) {
    suspend operator fun invoke(id:Int):NoteBean?{
        return repository.getNote(id)
    }
}